package com.jmu.service;

import com.jmu.mapper.StuMapper;
import com.jmu.pojo.Student;

import java.util.List;

public class StuServiceImpl implements StuService {
    private StuMapper stuMapper;

    public void setStuMapper(StuMapper stuMapper) {
        this.stuMapper = stuMapper;
    }

    public List<Student> selectStuByName(String name) {
        return stuMapper.selectStuByName(name);
    }

    public int addStu(Student stu) {
        return stuMapper.addStu(stu);
    }

    public int delStu(String uuid) {
        return stuMapper.delStu(uuid);
    }

    public int updateStu(Student stu) {
        return stuMapper.updateStu(stu);
    }
}
